package com.woniu.account.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.account.model.TRole;
import com.woniu.core.util.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年04月02日
 */
public interface TRoleService extends IService<TRole> {

    PageInfo<TRole> search(Integer pageNum, Integer pageSize) throws Exception;

    TRole insert(String roleName)throws Exception;

    TRole delById(Integer roleId)throws Exception;

    TRole updateName(Integer roleId, String roleName)throws Exception;

    List<TRole> findAllRole()throws Exception;
}
